<%--
  Created by IntelliJ IDEA.
  User: 侯新征
  Date: 2021/7/24
  Time: 23:29
  To change this template use File | Settings | File Templates.
--%>
<html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
  <div class="row-fluid">
    <div class="span12"><fieldset>
      <form action="addnews" method="post">

          <legend>发布新闻</legend>
            <label>发布人：</label><input type="text" name="npeople"/><br>
          <label>新闻标题</label><input type="text" name="ntitle"/><br>
          <label>新闻类型</label><select name="ntype">
            <option value="政治">政治</option>
            <option>经济</option>
            <option>法律</option>
            <option>军事</option>
            <option>科技</option>
            <option>体育</option>
            <option>社会</option>
          </select><br>
          <label>发布时间</label><input type="date" name="ndate"/><br>
          <label>发布内容</label><input type="text" name="nmsg"/><br>
          <a href="newslist.jsp">
            <button type="submit">发布</button>
          </a>
      </form>
      <button onclick="jump()" id="jumpto">取消发布</button>
    </fieldset>
    </div>
  </div>
</div>
<script>
  function jump(){
    window.location.href="newslist.jsp"
  }
</script>
</body>
